package com.abou.model.common.product.search;

import java.util.List;
import com.abou.model.common.AModel;
import com.abou.model.common.product.Product;

/**
 * The class of the search products result.
 * 
 * @author vvvq5150
 */
public class SearhProductResult extends AModel {
  
  /**
   *
   */
  private static final long serialVersionUID = 1L;
  private int totalRowsNumber = 0;
  private List<Product> products;
  
  /**
   * The search product result attribute
   */
  public static final String SEARCH_PROD_RES_ATT = "searchProductsResult";
  
  /**
   * The empty constructor
   */
  public SearhProductResult() {

    super();
  }
  
  /**
   * @param totalRowsNumber {@link #getTotalRowsNumber()}
   * @param products {@link #getProducts()}
   */
  public SearhProductResult(int totalRowsNumber, List<Product> products) {

    super();
    this.totalRowsNumber = totalRowsNumber;
    this.products = products;
  }
  
  public int getTotalRowsNumber() {

    return totalRowsNumber;
  }
  
  public List<Product> getProducts() {

    return products;
  }
}
